package com.zmj.sy.mom.srv.aps.controller;


import com.zmj.sy.mom.srv.aps.bean.vo.base.BaseResVo;
import com.zmj.sy.mom.srv.aps.bean.vo.stationbatch.StationBatchEmployeeGroupReqVo;
import com.zmj.sy.mom.srv.aps.bean.vo.stationbatch.StationBatchSchemeReqVo;
import com.zmj.sy.mom.srv.aps.bean.vo.stationbatch.StationBatchWorkTemplateReqVo;
import com.zmj.sy.mom.srv.aps.service.StationBatchService;
import com.zmj.sy.mom.srv.aps.service.StationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequiredArgsConstructor
@Api(tags = "工位批量设置")
@RestController
@RequestMapping("/stationBatch")
public class StationBatchController {

    private final StationBatchService stationBatchService;

    private final StationService stationService;

    @ApiOperation("1.10.1 日历类型")
    @PostMapping("/scheme")
    public BaseResVo scheme(@RequestBody StationBatchSchemeReqVo reqVo){
        stationBatchService.scheme(reqVo);
        return BaseResVo.ok();
    }

    @ApiOperation("1.10.2 开报工模板")
    @PostMapping("/workTemplate")
    public BaseResVo workTemplate(@RequestBody StationBatchWorkTemplateReqVo reqVo){
        stationBatchService.workTemplate(reqVo);
        return BaseResVo.ok();
    }


    @ApiOperation("1.10.3 员工组")
    @PostMapping("/employeeGroup")
    public BaseResVo employeeGroup(@RequestBody StationBatchEmployeeGroupReqVo reqVo){
        stationBatchService.employeeGroup(reqVo);
        return BaseResVo.ok();
    }
}
